package com.it.tydic.estate.module.service;

import com.it.tydic.estate.module.model.inner.TbRole;
import com.it.tydic.estate.module.model.inner.TbUser;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface RoleService {

    int deleteById(String id);

    TbRole findById(String id);

    int deleteByIds(List<String> idList);

    int addOrUpdate(TbRole tbRole);

    Map<String, Object> findAllByPage(Map<String, String> param);

    int updateRole2Resource(List<String> resourceIds, String roleId);

    List<TbRole> findRoleList();

    boolean roleIsUseByList(List<String> idList);

    boolean roleIsUseById(String id);
}
